lavc/avcodec: fix global/private option precendence
authorAnton Khirnov <anton@khirnov.net>
Sun, 13 Oct 2024 12:11:39 +0000 (14:11 +0200)
committerSebastian Ramacher <sramacher@debian.org>
Fri, 21 Feb 2025 12:16:27 +0000 (13:16 +0100)
commitc5eb487c89d1f3dff69bd3e2229e3eeddb47c1bf
treea55fc6a96dcf2ba3902c71f215f6a2f41367a37e
parenta6d2fd75a5b0eeb177cde6c22f6eb264c36a800d
lavc/avcodec: fix global/private option precendence

Broken after 7753a9d62725d5bd8313e2d249acbe1c8af79ab1. Apply only the
whitelist early, and the rest with a single call to av_opt_set_dict2()
with AV_OPT_SEARCH_CHILDREN, which should be equivalent to the original
behaviour.

Reported-by: Cameron Gutman <aicommander@gmail.com>
(cherry picked from commit 9ce63e65d65b303813d4ae677228226d7cd232b9)
Signed-off-by: Anton Khirnov <anton@khirnov.net>
Gbp-Pq: Name 0013-lavc-avcodec-fix-global-private-option-precendence.patch
libavcodec/avcodec.c